package com.topup.service.serviceimpl;

import com.topup.mapper.UserMapper;
import com.topup.pojo.User;
import com.topup.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceimpl implements UserService {
@Autowired
private  UserMapper mapper;


    @Override
    public User Userlogin(String name, String pwd) {
             User user=mapper.Userlogin(name,pwd);

         return user;
    }

    @Override
    public int adduser(User user) {
       int a=mapper.adduser(user);



        return a;

    }
}
